#!/usr/bin/env python

#################################################################################
#
# Copyright (c) 2006 Michigan State University
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#################################################################################

#################################################################################
#
#	Author:
#		Nathan Collins <npcollins@gmail.com>
#
#################################################################################

"""File containing login variable for the MySQL database

User edited file to specify login info for database. It
is executable to catch the case someone accidentally makes
this readable from a webserver, in which case it will do 
nothing.
"""

# functions
def getdbinfo():
	"""
	Returns a dict with the MySQL login information.

	Fields: host, user, passwd, db
	"""
	dbinfo = {}
	dbinfo['host'] = 'localhost'
	dbinfo['user'] = 'oaiuser'
	dbinfo['passwd'] = 'oaipw'
	dbinfo['db'] = 'oaidb'

	# return the dict
	return dbinfo


if __name__ == '__main__':
	print 'Content-type: text/plain\n'

# eof
